//
//  UIResponder+FCFirstResponder.m
//  辅城
//
//  Created by WJC on 2018/1/21.
//  Copyright © 2018年 吴 剑川. All rights reserved.
//

#import "UIResponder+FCFirstResponder.h"

@implementation UIResponder (FCFirstResponder)

static __weak id currentFirstResponder;
+ (id)currentFirstResponder {
    currentFirstResponder = nil;
    [[UIApplication sharedApplication] sendAction:@selector(findFirstResponder:) to:nil from:nil forEvent:nil];
    return currentFirstResponder;
}

- (void)findFirstResponder:(id)sender {
    currentFirstResponder = self;
}
@end
